import lombok.Data;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

@DataType
@Data
public class UserInfo {

    @Property
    String id;          //帐户id
    @Property
    String userName;    //帐户名称
    @Property
    String password;    //帐户密码
    @Property
    String state;       //帐户状态
    @Property
    String createTime;  //创建时间
    @Property
    String property;    //帐户资产

    public UserInfo(String id, String userName, String password, String state, String createTime, String property) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.state = state;
        this.createTime = createTime;
        this.property = property;
    }

    public UserInfo() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }
}
